package com.airbat.prize.common.enums;

import com.airbat.prize.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 录入方式 1清洗 2人工
 */
@Getter
@AllArgsConstructor
public enum InTypeEnum implements IntArrayValuable {

    CLEAN(1, "清洗"),
    ARTIFICIAL(2, "人工");

    /**
     * 值
     */
    private final Integer value;
    /**
     * 名称
     */
    private final String name;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(InTypeEnum::getValue).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
